package com.yloveg.service;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.yloveg.entity.Suser;
import com.yloveg.entity.UserExtend;

public interface UserService {
 
/**
 * 登录/查询
 * @param username
 * @param password
 * @return
 */
    public Suser findUserByNameAndPassword(String username);
    
    public int registerUser(Suser user);
    
    public int updateByPrimaryKeySelective(Suser record);
    
    public  PageInfo<UserExtend> queryUserPage(int page, int limit,Map<String,Object> map);
    
    public Suser findUserById(Long id);
    
    public List<Suser> selectByMap(Map<String,Object> map);
    
}